<script>
function callWindowOpen() {
  window.didCallWindowOpen = true;
  window.resultOfWindowOpen = window.open();  // about:blank in new window
}
</script>
